<?php
/* @var $this yii\web\View */

$this->title = '管理员管理';
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '管理员管理'), 'url' => ['index']];
?>
<div class="user-index">

    <?= $this->render('_search',['searchModel'=>$searchModel]);?>
    <?= \yii\grid\GridView::widget([
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
//            序号列
            ['class' => 'yii\grid\SerialColumn'],
            'username',
            'roles.description',
            //动作列 用于显示一些动作按钮，如每一行的更新、删除操作。
            [
                'class' => 'yii\grid\ActionColumn',
                'template'=>'{view}&nbsp;&nbsp;&nbsp;&nbsp;{update}',
                'header'=>'操作'
            ],
//            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
